﻿using FastCloud.Base.Desgin;
using FastCloud.Extend.Entity;
using FastUtil.Data;
using System;
using System.Collections.Generic;
using System.Text;

namespace FastCloud.Extend.DB
{
    public class DB_Theme : BaseDBML<Frame_Theme>
    {
        public override void Insert(Frame_Theme Entity)
        {
            if (string.IsNullOrEmpty(Entity.ThemeGuid))
            {
                Entity.ThemeGuid = GenerateUtil.GenerateUnitGuid();
            }
            Entity.AddDate = DateTime.Now;
            base.Insert(Entity);
        }
    }
}
